#include<iostream>
#include<string>
using namespace std;
void swap(int*a,int*b){
	int temp = *a;
	*a = *b;
	*b = temp;
}
void swap1(int& a, int& b) {
	int temp = a;
	a = b;
	b = temp;
}
int main() {

	int a = 10;
	int b = 20;

	swap(&a, &b);
	
   cout << "a=" << a << endl;
   cout << "b=" << b << endl;

   int i = 1;
   int r = 2;
   swap1(i, r);

   cout << "i=" << i << endl;
   cout << "r=" << r << endl;

	return 0;
}
